import requests

class Crawler(object):
    '''
    Crawler of ZhihuSpider, which only fetches web data according to input of thousands of urls
    '''
    def __init__(self, accounts):
        self.data = []  # A list to store data crawled
        self.accounts = accounts  # A list storing different accounts for crawling

    def fetch_data(self, url):
        data = requests.get(url, headers=self.accounts[0].headers)
        print data
        data = requests.get(url, headers=self.accounts[1].headers)
        print data

        print 'Debug in method fetch_data, Crawler.py'